<template>
  <div>
    <compHeader></compHeader>
    <div class="max-width-container">
      <compSidebar></compSidebar>
      <div class="g-content">
          <router-view></router-view>
      </div>
    </div>
    <compFooter></compFooter>
  </div>
</template>
<script>
import header from './components/header.vue';
import sidebar from './components/sidebar.vue';
import footer from './components/footer.vue';
export default {
  components: {
    compHeader: header,
    compSidebar: sidebar,
    compFooter: footer
  },
  data() {
    return {
    }
  }
}
</script>
<style scoped>
.max-width-container{
  margin: 0 auto;
  width: 1200px;
  position: absolute;
  top: 70px;
  bottom: 30px;
  left: 0;
  right: 0;
}

.g-content {
  position: absolute;
  top: 0;
  bottom: 0px;
  left: 270px;
  right: 0;
  padding: 16px 27px;
  /* overflow: auto; */
}

.menubar-expander {
  position: absolute;
  top: 50%;
  right: 0px;
  height: 50px;
  width: 20px;
  margin-top: -25px;
  overflow: hidden;
  cursor: pointer;
}



.menubar-expander .expander-bg {
  position: absolute;
  right: 0;
  left: auto;
  height: 48px;
  border-left: none;
  border-right: 13px solid #8e96ad;
  color: #fff;
  transition: all 0.1s ease, 0.1s ease;
  border-radius: 4px 0 0 4px;
}

.menubar-expander:hover .expander-bg {
  border-left: none;
  border-right: 20px solid #c0c7da;
}



.menubar-expander i {
  position: absolute;
  right: -1px;
  top: 50%;
  display: block;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  line-height: 14px;
  transition: all 0.1s ease, 0.1s ease;
}

.menubar-expander:hover i {
  right: 4px;
}

</style>
